<div class ="col-md-1"></div>
 <div class ="col-md-10">
<section id="color_2cols_1" class="cat-widget wdg-cat-horiz-2col-sm clearfix">
                    <div class="widget-title">
                        <h3><a href="<?php echo base_url("home/detail_all");?>">Manage tag</a></h3>
                        <span class="sub-title">จัดการแท็ก</span>

                        <div class="sep-widget"></div>
                    </div><br/>
<div class="content_block col-xs-12 col-sm-12 col-md-12 col-lg-12">
    <div class="col-md-4"></div>
     <div class="col-md-4 text-center">
    <p>
		<a href="<?php echo base_url('admin/tag/add'); ?>"><img src="<?php echo $imagepath;?>/add-tag.png"></a>
	</p>
</div><br/>
        <?php
	 	if(!empty($tags)){
	 	?>
	 		<table class="table1" >
	 		<thead>
				<tr>
					<th scope="col" >ID</th>
					<th scope="col" >Tag Name</th>
					<th scope="col" >Edit & Del </th>
				</tr>
			</thead>
			<tbody>
	 	<?php
	 		foreach($tags as $tag) {
	 	?>
				<tr>
					<td  class="span2"><?php echo $tag['id']; ?></td>
					<td><?php echo $tag['name']; ?></td>
					<td class="span2">
					    <a href="<?php echo base_url('admin/tag/add/'.$tag['id']); ?>" class="imageedit"><img src="<?php echo $imagepath;?>/edit.png"  /></a>&nbsp; &nbsp;
						<a href="<?php echo base_url('admin/tag/delete/'.$tag['id']); ?>" onClick="return confirm('คุณมั่นใจว่า จะลบtagนี้จิงๆ ใช่มั้ย !');" class="imageedit"><img src="<?php echo $imagepath;?>/remove.png"  /></a>  
						
					</td>
				</tr>
		<?php
			} // End foreach
		?>
			</tbody>
			</table>
		<?php
		}else{
			echo "Empty List";
		} // End if
		?>
	
</div>
</section>
</div>
 <div class ="col-md-10">
